//
//  ZYBaseVC.h
//  YiLin
//
//  Created by Zyark on 2018/5/29.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class device_communicate;

@interface ZYBaseVC : UIViewController
-(void)changeLanguage;

/**
 点击关闭键盘
 */
-(void)setupTap;


/**
 关闭键盘
 */
-(void)dismissKeyboard;


/**
 切换中英文
 */
-(void)switchLanguage;


/**
 设置语言

 @param language 语言 en英文 zh-Hans中文 
 */
-(void)setLanguage:(NSString *)language;


/**
 socket接收数据

 @param data 数据
 */
-(void)receiveMsgData:(device_communicate *)data;

/**
 重新连接socket

 @param ip socket ip地址
 @param macAddress 设备mac地址
 */
-(void)reconnectWithIp:(NSString *)ip macAddress:(NSString *)macAddress isDisconnect:(BOOL) isDisconnect;

/**
 连接socket成功
 @param notif 通知
 */
-(void)connectSocketSuccess:(NSNotification *)notif;
@end
